<%--
  Created by IntelliJ IDEA.
  User: ch-hui
  Date: 15/12/19
  Time: 下午4:33
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/common/taglibs.jsp" %>
<html>
<head>
    <title>供应商列表</title>
</head>
<body>

<div class="row">

  <div class="col-lg-12">
    <div class="ibox float-e-margins">
      <div class="ibox-title">
        <h5>原料供应商 <small>清单</small></h5>
        <div class="ibox-tools">
          <a class="collapse-link">
            <i class="fa fa-chevron-up"></i>
          </a>
          <a class="close-link">
            <i class="fa fa-times"></i>
          </a>
        </div>
      </div>

      <div class="ibox-content">

        <div class="ibox-tools">
          <button class="btn btn-primary" type="button"><i class="fa fa-plus"></i>&nbsp;新增供应商</button>
        </div>

        <table class="table table-striped table-bordered table-hover dataTables-example">
          <thead>
            <tr>
              <th>供应商名称</th>
              <th>联系人</th>
              <th>联系电话</th>
              <th>最近采购日期</th>
              <th>累计金额</th>
            </tr>
          </thead>

          <tbody>
          <c:forEach items="${supplies}" var="supply">
            <tr>
              <td><a href="${BASE}/supply/edit/${supply.id}">${supply.name}</a></td>
              <td>${supply.contact_person}</td>
              <td>${supply.telephone}</td>
              <td><fmt:formatDate value="${supply.create_time}" pattern="yyyy-MM-dd"></fmt:formatDate></td>
              <td><fmt:formatNumber type="currency" var="money">16888</fmt:formatNumber><c:out value="${money}"/></td>
            </tr>
          </c:forEach>
          </tbody>
        </table>
      </div>
    </div>
  </div>
</div>
<script type="text/javascript" src="${BASE}/www/script/supply/supply.js"></script>
</body>
</html>
